﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using yncTech.BusinessObjects;
using EntitySpaces.Interfaces;

public partial class Admin_Sys_Dic_Dic_ThirdUnit_SecondFloor : AdminBasePage
{
    protected  Guid c_num = Guid.NewGuid();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["cid"] != null)
        {
            var stringid = Request.QueryString["cid"];
            c_num = Guid.Parse(stringid);
        }
    }
    protected void PageChanged(object sender, DataGridPageChangedEventArgs e)
    {
        BFThirdUnitNumberQuery q2 = new BFThirdUnitNumberQuery("q2");
        q2.Where(q2.ThirdUnitCabinID == c_num);
        q2.Load();
        pageGrid.DataSource = q2.LoadDataTable();
        pageGrid.CurrentPage = e.NewPageIndex;
        pageGrid.DataBind();
    }
}